home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / hard / hack / SerialBuffer.lha / SerialBuffer / SerialBuffer.txt < prev    next >
Text File  |  1992-09-02  |  5KB  |  106 lines

  1. How to make a serial buffer.
  2.  
  3.   Serial data transmissions over short distances are ok, but over longer
  4. distances, errors can easily occur due to losses incurred in the cable. To
  5. minimise this, I have designed a buffer that allows data to be sent over longer
  6. distances at greater speeds.
  7.  
  8.   The buffer as described here is suitable for use with a standard null modem
  9. cable. You can either use it with one or both computers. Alternatively, you may
  10. wish to use a single buffer in the middle of your cable, or for very long runs,
  11. you may wish to use several buffers along the length of your cable. This is
  12. easily accomplished by building several buffer circuits and using suitable
  13. connectors to join them. However, this is beyond the scope of this project, and
  14. you will have do design this by yourself.
  15.  
  16.  Parts needed (for 1 buffer)
  17.  
  18.  1x DB25 Female  (See note 1)
  19.  1x DB25 Male (See note 2)
  20.  1x DB25 cover (See note 3)
  21.  3x LM393 voltage comparator ICs (or equivalent - see note 4)
  22.  3x 8 pin DIL sockets
  23.  8 way cable.
  24.  A scrap of veroboard.
  25.  A suitable box.
  26. Optional:
  27.  1x DB25 Female and cover (see 5)
  28.  
  29.  
  30. (1) For the A1000, you will need a male connector.
  31.  
  32. (2) This is assuming you are using a standard null modem cable. (e.g. as the one
  33. described in my doc SerialCable.lha) If you are not, then you will need a
  34. connector that matches the sort used. Also, you will need to know what
  35. connections are made within that cable.
  36.  
  37. (3) You may wish to make both leads flying, in which case you will need 2
  38. covers.
  39.  
  40. (4) You may wish to use 2xMC3302 or 1xMC3302 and 1xLM393 ICs instead. In this
  41. case, you will need to know the pin connections of these chips, and have the
  42. ability to modify the circuit given.
  43.  
  44. (5) The serial port on the A1200 can only supply 20mA of current, and the A1000
  45. has no -12V connection at all on the serial port, so you may need to derive
  46. power from the video port. Other Amigas _should_ be able to supply enough power
  47. via the serial port, A1200s with an uprated PSU should also be fine.
  48.   If you are already using your video port, and deriving power from the serial
  49. port proves insufficient, then you will need to make an alternative power
  50. supply. This is beyond the scope of this article, however.
  51.  
  52. Circuit theory.
  53.  
  54.   The Amiga serial port uses logic levels of +12 and -12V. This buffer is
  55. designed to treat any signal above ground as +12V, and any signal below as -12V.
  56. It will also increase the current available. This should ensure that all signals
  57. are strong when being sent, and that any weak signals are boosted sufficiently.
  58.   The circuit uses comparators with a 0V reference to determine the logic level
  59. of the incoming signals. If the signal is below the reference level, then the
  60. output swings low (to -12V), above and it swings high (to +12V).
  61.  
  62. Construction.
  63.  
  64.   The circuit diagram is shown in the accompanying IFF. I recommend that the
  65. male DB25 connector is fixed to the side of the box, whilst the female one is
  66. connected to a flying lead to enable easier connection to the computer. Please
  67. note that it is very important that the power supply pins are ONLY connected to
  68. the power inputs of the comparators, and that NO POWER RAILS ARE LINKED. You
  69. MUST NOT join the power rails from two different sources (i.e. two different
  70. computers) and it is inadvisable to connect power rails from different ports
  71. together either. It is also important that the outputs of the comparators are
  72. only connected to those pins that are inputs, and the output pins on the
  73. computers are only connected to the comparator inputs. If the external power
  74. option is needed, then I advise that you connect a flying lead for the
  75. connector. You MUST ONLY connect power from one source however. If you use a
  76. power source other than the serial port, you need to connect the system earth
  77. (pin 7) to the earth of your supply, but you MUST NOT connect the power pins.
  78.  
  79.  
  80. Final note.
  81.  
  82.   When you have finished making your buffer, connect it to your amiga, and
  83. connect the null modem cable to the buffer. MAKE SURE THE AMIGA IS SWITCHED OFF
  84. WHEN YOU ARE PLUGGING IT IN! If, when you turn your amiga on the display is not
  85. as it should be, POWER OFF AT ONCE! Check the circuit for shorts between rails
  86. and broken tracks. If the circuit still doesn`t work, and the cable did work
  87. without it, then either one of your LM393s is duff, or you are trying to draw
  88. too much power from the Amiga. If the latter is the case, try using an alternate
  89. power source. If you still have problems, try swapping your LM393s around.
  90. To test that the circuit is operating correctly, simply use the link to send
  91. data from one machine to another. You should be able to transmit data faster
  92. without errors than you could before.
  93.  
  94. **************************************************************
  95. **               IMPORTANT  -- DISCLAIMER                   **
  96. **                                                          **
  97. **  You construct this project ENTIRELY AT YOUR OWN RISK.   **
  98. ** I will NOT be responsible for any damage caused to you or**
  99. ** your equipment as a result of any errors or omissions in **
  100. **  this document. Neither will I accept any liability for  **
  101. **   the use of this document or its contents in any form.  **
  102. **                                                          **
  103. **  Stephen Hughes,   8/6/95                                **
  104. **************************************************************
  105.  
  106.